// import store from '@/store' store.state.common.isModule

export default [
  {
    path: '/case',
    component: () =>
      import(/* webpackChunkName: "case" */ `@/page/home.vue`),
    name: 'case',
    iconCls: 'el-icon-s-management',
    meta: {
      title: '專案管理',
      keepAlive: false
    },
    single: true,
    hiddenType: 2,
    otherType: 3,
    sort: 95,
    children: [
      {
        path: 'caseIndex',
        component: () =>
          import(/* webpackChunkName: "case" */ `@/page/case/index.vue`),
        name: 'caseIndex',
        meta: {
          title: '專案管理'
        },
      }
    ]
  },
  {
    path: '/caseManage',
    component: () =>
      import(/* webpackChunkName: "case" */ `@/page/home.vue`),
    name: 'caseManage',
    iconCls: 'el-icon-document-add',
    meta: {
      title: '專案創建',
      keepAlive: true
    },
    single: true,
    hiddenType: 2,
    children: [
      {
        path: 'createCase',
        component: () =>
          import(/* webpackChunkName: "case" */ `@/page/case/create-case.vue`),
        name: 'createCase',
        meta: {
          title: '專案創建',
          keepAlive: true
        }
      }
    ]
  },
  {
    path: '/caseDetail',
    component: () =>
      import(/* webpackChunkName: "case" */ `@/page/home.vue`),
    name: 'caseDetail',
    iconCls: 'el-icon-message',
    meta: {
      title: '專案詳情',
      keepAlive: true
    },
    children: [
      {
        path: 'caseDetailIndex',
        component: () =>
          import(/* webpackChunkName: "case" */ `@/page/case/case-detail.vue`),
        name: 'caseDetailIndex',
        meta: {
          title: '專案詳情',
          keepAlive: true
        },
      }
    ]
  }
]
